<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="head.html::head">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:text="${msg}"></div>
<div th:text="${agd}"></div>
<div id="top" th:include="head.html::top"></div>
<div id="left" th:include="left.html::left"></div>
<table>
    <h3><a th:href="@{/admin/usersadd}">添加用户信息</a></h3>
    <tr>
        <th>用户名称</th>
        <th>用户密码</th>
        <th>性别</th>
        <th>出生日期</th>
        <th>用户所在城市</th>
        <th>用户电话</th>
        <th>用户邮箱</th>
        <th>QQ邮箱</th>
        <th>信用值</th>
        <th>注册时间</th>
        <th>照片</th>
    </tr>
<tr th:each="users:${userslist.list}">
    <td th:text="${users.getUname()}"></td>
    <td th:text="${users.getUpwd()}"></td>
    <td th:text="${users.getUsex()}"></td>
    <td th:text="${users.getUbirth()}"></td>
    <td th:text="${users.getUphone()}"></td>
    <td th:text="${users.getUcity()}"></td>
    <td th:text="${users.getUemail()}"></td>
    <td th:text="${users.getUqq()}"></td>
    <td th:text="${users.getUcredit()}"></td>
    <td th:text="${users.getUregtime()}"></td>
<!--    <td th:text="${users.getUimage()}"></td>-->
    <td>
        <img th:src="'/userImg/' + ${users.getUimage()}" style="width: 200px"/>
    </td>

    <td>
        <a th:href="@{/admin/delUsers/} + ${users.getUid()}">删除</a>
        <a th:href="@{/admin/users/} + ${users.getUid()}">编辑</a>
    </td>
</tr>
</table>
<div id="page" th:include="page.html::mypage(users,${userslist})"></div>
</body>
</html>